xenpaging: Fix ioemu invalidation
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Mar 2010 08:45:45 +0000 (08:45 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Mar 2010 08:45:45 +0000 (08:45 +0000)
xs_write takes the length of the string being written, not the
path.

Signed-off-by: Steven Hand <steven.hand@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/xenpaging/xc.c

index 98931c53316ca87b5a8861f0d09d6e6652fbb25f..a5a396b3fd0e18498c9fa8db64bff55dddc5039f 100644 (file)
@@ -22,6 +22,7 @@
 
 
 #include <errno.h>
+#include <string.h>
 #include <sys/poll.h>
 #include <xc_private.h>
 #include <xg_save_restore.h>
@@ -56,7 +57,7 @@ int xc_mem_paging_flush_ioemu_cache(domid_t domain_id)
     if ( xsh == NULL )
         return -EIO;
 
-    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen(path));
+    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen("flush-cache")); 
 
     xs_daemon_close(xsh);